home *** CD-ROM | disk | FTP | other *** search
- # Jedi Knight Missions Cog
- #
- # S1L2_secretfloor.cog
- #
- # [TL]
- #
- # (C) 1997 LucasArts Entertainment Co. All Rights Reserved
- #============================================================================
-
- symbols
- message activated
- message startup
-
- surface floor linkid=1
-
- sound kyle
- sound beep
-
- thing consol linkid=2
- thing door linkid=3
- thing ghost
-
-
- int done=0 local
-
- template mine
-
- end
-
- #============================================================================
-
- code
- startup:
- SetFaceGeoMode(floor, 4);
- return;
-
- activated:
- if (done) return;
-
-
- if (GetSenderId() == 2)
- {
- done=1;
- PlaySoundThing(beep, consol, 1, -1, -1, 0);
-
- SetFaceGeoMode(floor, 0);
- MoveToFrame(door, 1, 4);
-
- sleep(1.0);
- PlaySoundLocal(kyle, 3, 0, 0);
- CreateThing(mine, ghost);
- }
- return;
-
- end
-
-